package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * 站点表
 *
 * @author chenyu
 */
public class TrainStation implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键ID
    private String roadId;//交路ID 不与数据库对应
    private String trainId; //车次ID
    private String trainCode; //车次
    private int num; //站点编号
    private String name; //站点名称
    private String arriveTime; //站点到达时间
    private String departTime; //站点离开时间
    private int stopTime; //站点停留时间
    private int costTime; //站点用时
    private int distance; //站点距离
    private int isEnd; //是否终点
    private String longitude;//经度
    private String latitude;//纬度

    private String weatherCondition;//天气状况
    private String temp;//气温
    private String windType;//风力
    private int isAlert;//是否警告

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTrainId() {
        return this.trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId;
    }

    public String getTrainCode() {
        return this.trainCode;
    }

    public void setTrainCode(String trainCode) {
        this.trainCode = trainCode;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArriveTime() {
        return this.arriveTime;
    }

    public void setArriveTime(String arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getDepartTime() {
        return this.departTime;
    }

    public void setDepartTime(String departTime) {
        this.departTime = departTime;
    }

    public int getStopTime() {
        return this.stopTime;
    }

    public void setStopTime(int stopTime) {
        this.stopTime = stopTime;
    }

    public int getCostTime() {
        return this.costTime;
    }

    public void setCostTime(int costTime) {
        this.costTime = costTime;
    }

    public int getDistance() {
        return this.distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public int getIsEnd() {
        return this.isEnd;
    }

    public void setIsEnd(int isEnd) {
        this.isEnd = isEnd;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getRoadId() {
        return roadId;
    }

    public void setRoadId(String roadId) {
        this.roadId = roadId;
    }

    public String getWeatherCondition() {
        return weatherCondition;
    }

    public void setWeatherCondition(String weatherCondition) {
        this.weatherCondition = weatherCondition;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getWindType() {
        return windType;
    }

    public void setWindType(String windType) {
        this.windType = windType;
    }

    public int getIsAlert() {
        return isAlert;
    }

    public void setIsAlert(int isAlert) {
        this.isAlert = isAlert;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}